<template>
  <view class="page" :style="themeColor">
    <view class="flex benben-position-layout flex flex-wrap align-center platformCustomerService_flex_0"
      :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
      <view class='flex flex-wrap align-center justify-between flex-sub platformCustomerService_fd0_0'>
        <view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
          <text class='fu-iconfont2  platformCustomerService_fd0_0_c0_c0'>&#xE794;</text>
        </view>
        <view class='flex flex-wrap align-stretch justify-center flex-sub'>
          <text class='platformCustomerService_fd0_0_c1_c0'>联系客服</text>
        </view>
        <view class='flex flex-wrap align-center platformCustomerService_fd0_0_c2'>
        </view>
      </view>

    </view>
    <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
    <!---联系我们flex布局开始-->
    <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout platformCustomerService_flex_1">
      <view class='flex flex-wrap align-center justify-center'>
        <image class='platformCustomerService_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
      </view>
      <view class='flex flex-wrap align-center platformCustomerService_fd1_1'>
        <view class='flex flex-wrap align-start flex-sub platformCustomerService_fd1_1_c0' @tap="makeCall">
          <image class='platformCustomerService_fd1_1_c0_c0' mode="aspectFit" :src='STATIC_URL+"43.png"'></image>
          <view class='flex flex-direction flex-wrap align-center platformCustomerService_fd1_1_c0_c1'>
            <text class='platformCustomerService_fd1_1_c0_c1_c0'>电话服务</text>
            <text class='platformCustomerService_fd1_1_c0_c1_c1'>{{select_type.kefu_time}}</text>
          </view>
          <view class='flex flex-wrap align-center platformCustomerService_fd1_1_c0_c2'>
            <text class='platformCustomerService_fd1_1_c0_c2_c0'>{{select_type.kefu_phone}}</text>
          </view>
        </view>
      </view>
    </view>

    <!---联系我们flex布局结束-->


  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "time": "",
        select_type: {}
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getabout()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //关于我们
      async getabout() {
        let res = await this.$api.post(global.apiUrls.aboutus, {

        })
        if (res.data.code != 1) {
          this.$message.info(res.data.msg)
          return
        }
        this.select_type = res.data.data
        console.log(this.select_type, 'this.select_type')
      },
      makeCall() {
        uni.makePhoneCall({
          phoneNumber: this.select_type.kefu_phone,
          success() {
            console.log('拨号成功');
          },
          fail(error) {
            console.log('拨号失败', error);
          }
        });
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(248, 248, 248, 1);
    background-size: 100% auto !important;
  }

  .platformCustomerService_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .platformCustomerService_fd0_0_c2 {
    width: 32rpx;
    height: 32rpx;
  }

  .platformCustomerService_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
    line-height: 88rpx;
  }

  .platformCustomerService_fd0_0_c0_c0 {
    font-size: 32rpx;
    font-weight: 500;
    color: #333;
    line-height: 88rpx;
  }

  .platformCustomerService_fd0_0 {
    margin: 0rpx 32rpx 0rpx 32rpx;
  }

  .platformCustomerService_flex_1 {
    padding: 191rpx 0rpx 0rpx 0rpx;
  }

  .platformCustomerService_fd1_1_c0_c2_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 500;
  }

  .platformCustomerService_fd1_1_c0_c2 {
    margin: 0rpx 0rpx 0rpx auto;
  }

  .platformCustomerService_fd1_1_c0_c1_c1 {
    color: #333333;
    font-size: 24rpx;
    font-weight: 400;
  }

  .platformCustomerService_fd1_1_c0_c1_c0 {
    margin: 0rpx 0rpx 16rpx 0rpx;
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
  }

  .platformCustomerService_fd1_1_c0_c1 {
    margin: 0rpx 0rpx 0rpx 32rpx;
  }

  .platformCustomerService_fd1_1_c0_c0 {
    width: 60rpx;
    height: 60rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .platformCustomerService_fd1_1_c0 {
    background: #FAE5E6;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    width: 638rpx;
    height: 141rpx;
    padding: 28rpx 32rpx 0rpx 32rpx;
  }

  .platformCustomerService_fd1_1 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    height: 221rpx;
    width: 686rpx;
    margin: 0rpx auto 0rpx auto;
    padding: 40rpx 24rpx 40rpx 24rpx;
  }

  .platformCustomerService_fd1_0_c0 {
    width: 500rpx;
    height: 330rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }
</style>